package com.example.obs.model.domin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.obs.config.UserDepartmentConverter;
import com.example.obs.config.UserRoleConverter;
import com.example.obs.config.UserStateConverter;
import lombok.Data;

@Data
public class User {
    private Integer id;

    @ExcelProperty("账号")
    private String userId;

    @ExcelProperty("真实姓名")
    private String userName;

    private String password; //密码

    @ExcelProperty(value = "角色", converter = UserRoleConverter.class)
    private Integer role;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty("电话")
    private String phoneNum;

    @ExcelProperty(value = "状态", converter = UserStateConverter.class)
    private Integer state;

    @ExcelProperty(value = "部门",converter = UserDepartmentConverter.class)
    private Integer departmentId;
    //接口请求状态
    private boolean staus;


}
